package com.itheima.homework.homework2;

public class HomeWork22 {
    public static void main(String[] args) {
        Long time1 =System.currentTimeMillis();
        String[] s={"张三丰","张无忌","周芷若","任我行","林青霞","柳岩"};
        double a=Math.random()*(s.length);
        int index=(int)a;
        System.out.println("抽中："+s[index]+"!，恭喜"+s[index]+"当选本届武林盟主！");
        Long time2 =System.currentTimeMillis();
        System.out.println(time2-time1);
    }
}
